<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const user = {
        name: "jack",
        size: {
          h: 100,
          w: 200,
          info: {
            font: 2,
          },
        },
      };
      console.log(user.size);
      console.log(user.size.h, user["size"]["w"]);
      user.size.info.font = 100;
      user.size.info.color = "red";
      console.log(user.size.info.font);
      console.log(user);
    </script>
  </body>
</html>
